<?php foreach($people as $person){ ?>
	<div class="f_list_item">
		<a href="<?php echo Yii::app()->createUrl('profile/index', array('id'=>$person->id));?>" class="f_list_img">
			<?php if($person->avatar_info){ ?>
				<?php echo $this->material_image('', $person->avatar_info->name, '100', 'photos/'. $person->id . '/' . 0); ?>
			<?php }else{ ?>
				<?php echo $this->material_image('', 'noimage.gif', '100', ''); ?>
			<?php } ?>				
		</a>
		<div class="f_list_txt no_l">
			<div class="f_list_name">
				<a href="<?php echo Yii::app()->createUrl('profile/index', array('id'=>$person->id));?>"><?php echo CHtml::encode($person->full_name); ?></a>
			</div>
			<div class="f_list_data">
				<p>
					<?php if($person->country_id){ echo CHtml::encode($person->country->name); } ?>
					<?php if($person->country_id && $person->city){ echo ", "; } ?>
					<?php if($person->city){ echo CHtml::encode($person->city); } ?>
				</p>
				<p>
					<?php if(Yii::app()->request->getParam('from') == 'blacklist') : ?>
						<a href="<?php echo Yii::app()->createUrl('profile/addBlackList', array('blacklist'=>$person->id));?>" class="ajaxLink">Добавить в бан-лист</a>
					<?php endif; ?>
				</p>
			</div>
		</div>
	</div>
<?php } ?>
<?php if((count($people) == $limit)){ ?>
	<div class="ovh">
		<div class="c">
			<div class="more_btn cc more_search" rel="<?php echo Yii::app()->createAbsoluteUrl("search/getpeople", array('offset'=>$offset, 'limit'=> $limit)); ?>">Показать больше</div>
		</div>
	</div>
<?php } ?>	